const shop = {
  path: '/shop',
  meta: { title: '商城' },
  component: () => import('@/apps/admin/Layout/Layout.vue'),
  children: [
    {
      path: 'dashboard',
      meta: {
        title: '首页',
        icon: 'dashboard'
      },
      name: 'ShopDashBoard',
      component: () => import('@/apps/admin/views/shop/DashBoard.vue')
    },
    {
      path: 'store',
      meta: {
        icon: 'shop',
        title: '店铺管理'
      },
      name: 'ShopList',
      component: () => import('@/apps/admin/views/shop/Store.vue')
    },
    {
      path: 'goods',
      meta: {
        icon: 'shopping_basket',
        title: '商品管理'
      },
      component: () => import('@/layout/Empty.vue'),
      children: [
        {
          path: 'list',
          alias: '',
          name: 'GoodsList',
          meta: {
            title: '商品列表',
            icon: 'list_alt'
          },
          component: () => import('@/apps/admin/views/shop/GoodsList.vue')
        },
        {
          path: 'category',
          name: 'GoodsCategory',
          meta: {
            title: '商品分类',
            icon: 'category'
          },
          component: () => import('@/apps/admin/views/shop/GoodsCategory.vue')
        }
      ]
    },
    {
      path: 'order',
      component: () => import('@/layout/Empty.vue'),
      meta: {
        title: '订单管理',
        icon: 'toc'
      },
      children: [
        {
          path: '',
          name: 'OrderList',
          meta: {
            title: '列表',
            icon: 'vertical_split'
          },
          component: () => import('@/apps/admin/views/shop/OrderList.vue')
        },
        {
          path: 'edit/:id',
          name: 'OrderEdit',
          hidden: true,
          props: true,
          meta: {
            title: '编辑订单',
            icon: 'edit'
          },
          component: () => import('@/apps/admin/views/shop/OrderEdit.vue')
        },
        {
          path: 'preview/:id',
          name: 'OrderPreview',
          hidden: true,
          props: true,
          meta: {
            title: '订单信息',
            icon: 'edit'
          },
          component: () => import('@/apps/admin/views/shop/OrderPreview.vue')
        }
      ]
    },
    {
      path: 'settings',
      component: () => import('@/layout/Empty.vue'),
      meta: {
        title: '商城设置',
        icon: 'settings'
      },
      children: [
        {
          path: 'carousel',
          name: 'ShopSettingCarousel',
          meta: {
            title: '首页轮播',
            icon: 'view_carousel'
          },
          component: () => import('@/apps/admin/views/shop/settings/Carousel.vue')
        },
        {
          path: 'menu',
          name: 'ShopSettingMenu',
          meta: {
            title: '菜单设置'
          },
          component: () => import('@/apps/admin/views/shop/settings/Menu.vue')
        }
      ]
    }
  ]
}
export default shop
